Summary
Affected versions of reqwest
npm package are vulnerable to remote code execution vulnerability when requesting a malicious URL.
Product
All versions of reqwest npm package.
Impact
This issue may lead to remote code execution if the URL fetched is untrusted input.
Steps to reproduce
- Run the following server:
1 | from flask import Flask, Response |
- Make a get request to the server:
1 | var reqwest = require('reqwest') |
Expected result:
A calculator will pop up on the server.
Remediation
Currently there is no fix version released.
Credit
This issue was discovered and reported by Checkmarx SCA Security Researcher Yaniv Nizry.